package com.baiqian.doupo.fluids;

import com.baiqian.doupo.Utils;
import com.baiqian.doupo.block.BlockRegistry;
import net.minecraft.fluid.FlowingFluid;
import net.minecraft.fluid.Fluid;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fluids.FluidAttributes;
import net.minecraftforge.fluids.ForgeFlowingFluid;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;

public class FluidsRegistry {
    public static final ResourceLocation STILL_OIL_TEXTURE = new ResourceLocation("block/water_still");
    public static final ResourceLocation FLOWING_OIL_TEXTURE = new ResourceLocation("block/water_flow");

    public static final DeferredRegister<Fluid> FLUIDS = DeferredRegister.create(ForgeRegistries.FLUIDS, Utils.MOD_ID);
    public static RegistryObject<FlowingFluid> zhu_ji_ling_ye_fluid = FLUIDS.register("zhu_ji_ling_ye_fluid", () -> new ForgeFlowingFluid.Source(FluidsRegistry.PROPERTIES));
    public static RegistryObject<FlowingFluid> zhu_ji_ling_ye_fluid_flowing = FLUIDS.register("zhu_ji_ling_ye_fluid_flowing", () -> new ForgeFlowingFluid.Flowing(FluidsRegistry.PROPERTIES));
    public static ForgeFlowingFluid.Properties PROPERTIES = new ForgeFlowingFluid.Properties(zhu_ji_ling_ye_fluid, zhu_ji_ling_ye_fluid_flowing, FluidAttributes.builder(STILL_OIL_TEXTURE, FLOWING_OIL_TEXTURE).color(0xFFacf8d2).density(4000).viscosity(4000)).block(BlockRegistry.zhu_ji_ling_ye).slopeFindDistance(3).explosionResistance(100F);
}
